post returns user to browser | catching undefined property for put on in browser