Update login functionality