Moved login type to its own file