binding loginView to controller