New and not yet improved login controller