Fixed jshint checking and errors
Added simple registration UI
Error stored when login fails
Registration form validation added