Pre check wether the user logged or not