Update login functionality.