Integrate Login method (fix #1)