Application credential security and data security