Adding code to handle loging in and signing up