Fixed errors, implemented error 400 page