updated serverside code

added validation for login and signup,
added redirect for guest users