Added register form and fixed models/script