Got login method done
Error handling