authorizePost() function name changed