updates login functionality