added authentication with devise and associated the user in status