Ok, ya I just realized what I did wrong with the equations. I forgot that a squared value can never be negative and thus never less then zero. So the only constraint on p left was that it be less then $1 over 2$.

Thanks alot again.