Error handling in the sign in and sign up. Fixed bug for persistence of storage.