connected front-end with back-end for login

Updated '/login.json' method to accept post request from send form
'/client/index.html'. 'login' function gives 200 error when login
successful. Next step is tokens.