Change createSession() to static function
Use Elegant ORM
do an error check on the postMyProfile