made login possible, but still using ugly loading dialog