remove code for handling login. moved to a new class