added sign in/retrieve/account into functions