added sign in button, changed code to make the header not break when the search code breaks and error messages are displayed
merge