added helper method in User rails	 model