Added login support

I have added login support.