Implemented basic login method