Fixed an issue with the profile controller logic
Added validation for the profile page
Committing merge changes