fixed bad smells in LoginFrame
changed code order for better understanding