updated login and main controller views