User login,logout and registering made