Login implemented

Finished up the login