Moved LoginController over to kotlin