added login stuff in API crypt still not working