User registration and login functionality via ajax, cabinet bundle