add function to add new loans