add functionality for signup and login