Adding login to the views