finished user register, user login, user change password and user logout