*trying out buffering to prevent headers_sent problem
*fixed small errors to remove error messages on login screen