implemented login and devcard controllers