login and signUp function completed