implement strong typing for angular app and login controller