Login method added.