Rectified modue naming error and added user logged in check