check undefined in getProfile.js
Merge
Merge branch 'master' of https://github.com/corcrash/PMS

Conflicts:
	.idea/workspace.xml
	config/database.js
	controllers/getProfile.js