manual login instead of spring rest template