Alter signup and login logic