made login + register work --have to sort out api GET requests