Updated login logic to validate with the server side in case of page refresh