fixes connection to firebase for creating students
refactors detailsCtrl to use firebase methods properly