Full Authentication working as well as login persistence on page refresh