modified these two files to handle login and signup