Adding login controller