Login Class functional.