Updated loan controller