Created user model and implemented neccessary tests