fixed issues with signing up and logging on