add ajax auth
create tests frontend authorization