Transferred login to template