generate function
check strength password