login method skeleton