Cast login_failures to integer

For some reason i didn't need to do this on my dev box which also uses
postgres.