add functionality to sign in and signup pages