Changed the base template to respond depending on request. Also succesfully added log ins.