add view profile and check user loggin