What's wrong with this code?

take a look at these lines:

$(#register).click(function() {
        var username = $(#Username).val();

there are two mistakes here, already, you are missing ' inside $():

$('#register').click(function() {
        var username = $('#Username').val();

and this goes for many lines to follow, you can fix it, and then post an updated version of your code

Please read this post about markdown so your code/indent will show.

#register are names of html elements, in this case id’s, they need ', without it, they would be js/jquery variable, which they are not.