Login page changes and main controller