Add methods for profile and edit profile views, some other tweaks

Then $result isn't set and the method returns false. What more do we need?