Added dynamic base_url function and create-profile page