Modified the profile auth module