login

Login logic now complete