Initial version with try to login