setting up login - get - post