Added helping methods in user and company models