Modified procedure for displaying error messages
Fixed bug in showing profiles for users without profile
Minor modification to edit account settings method