fixing the user login, user signup, user permission