bootstrap + ajax registration and authorization