Imlement UserInterface in User model and do the log in/log out process