added max val to login