Update LoginController.js

Post method was not coded properly.