fixed home page connection loading based on userdetails