Moved login check from User to Application