rewrite admin and user login.