Update auth.php

Added comments and created the updateLoginDB function.