added all user logic to controllers'