diff --git a/deploystream/apps/users/views.py b/deploystream/apps/users/views.py
index 5853850..8e8d731 100644
--- a/deploystream/apps/users/views.py
+++ b/deploystream/apps/users/views.py
@@ -43,7 +43,11 @@ def login():
flash('Welcome %s' % user.name)
return redirect(url_for('users.home'))
flash('Wrong email or password', 'error-message')
- return render_template("users/login.html", form=form)
+ if request.method == 'POST':
+ suffix = ".html"
+ else:
+ suffix = "_ajax.html"
+ return render_template("users/login" + suffix, form=form)
@mod.route('/register/', methods=['GET', 'POST'])
diff --git a/deploystream/static/less/bootstrap-modules.less b/deploystream/static/less/bootstrap-modules.less
index 798c5e0..8afb5bf 100644
--- a/deploystream/static/less/bootstrap-modules.less
+++ b/deploystream/static/less/bootstrap-modules.less
@@ -13,7 +13,7 @@
// Base CSS
@import "bootstrap/type.less";
@import "bootstrap/code.less";
-// @import "bootstrap/forms.less";
+@import "bootstrap/forms.less";
@import "bootstrap/tables.less";
// Components: common
diff --git a/deploystream/templates/base.html b/deploystream/templates/base.html
index 24fe0f6..bb39707 100644
--- a/deploystream/templates/base.html
+++ b/deploystream/templates/base.html
@@ -11,6 +11,11 @@
+
+
+
+
+
{% block extrahead %}
{% endblock %}
{% endblock %}
@@ -36,10 +41,22 @@
-
-
-
-
+
{% block scripts %}{% endblock %}