Update loginFunction.php

function userLogin is added