signup & login page logic