post and secret key functioning...