POST and GET methods working