created working loginWithPostData