Reduce amount of transmission and lots of changes
Move some error handling codes from alternate.php to post.php
Use UID instead of N in alternate.php
Merge two users.php calls in alternate.php
Add ip_only()