Implement real login method