User checking and functional login.