Updated Login script for server