populate profile section with profile info or register form depending on user login status