Changed login.html.php back fro controller use

Added the redirect to get devices which will need to be changed after it
is added to the controller