Added comments
Renamed login

Renamed login to support multiple types of login methods.