Added login method
Fixed sign up and login process