Moved javascript to loginform
Added registration