Validation to sign in and remove unecessary links