added login controller/model