implements login template
puts authUser() function on home's controller