added loggin for attempts