redirect to login page after logout
fixed bug in creating a user