Added more login features to translate into JSON to send to tomcat