Almost functional login method