Fixed the regx part, server side check are necessary