recovered login functionality