user authentication added, user model reshaped, minitest for user and user controller