signup function is written

renamed methods for login and register