got jQuery ajax loading on create posts working
optimized the nil initialization check for temporary user
code formatting