modified user to so that it doesnt crash when accessed from dashboard
added api and authentication files