Fixed RESTService login method and added simple authentication logic. Added JSON data to login modal, will activate these lines of code after the server builds.