added some post request to login and register

using requests python library for simplicity.