few more additions to rest api template and some login work