Modify endpoints get and post for /signin to implement proper functionality.