implementation devise part 1