Done: signin database errors. Next: save photo parameters when sign in and sign up.