changed database and url for localhost
implemented registration-check on existing usernames
added profile view to when logged in