Login process fixed